package com.net.xpay.common.dao.stat;

import com.net.xpay.common.domain.stat.UserTransMonthStat;
import com.net.xpay.common.model.UserUnionTransMonthStatResultModel;
import com.net.xpay.common.model.search.UserUnionTransMonthStatSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import com.net.xpay.core.model.UserTransMonthStatSearchModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface UserTransMonthStatMapper extends PagedMapper<Long, UserTransMonthStat> {
    List<UserTransMonthStat> search(@Param("searchModel") UserTransMonthStatSearchModel searchModel,@Param("page") Page page);

    long searchCount(@Param("searchModel")UserTransMonthStatSearchModel searchModel);

    List<UserTransMonthStat> list(@Param("searchModel")UserTransMonthStatSearchModel searchModel);

    List<UserUnionTransMonthStatResultModel> searchUnion(@Param("searchModel") UserUnionTransMonthStatSearchModel searchModel, @Param("page") Page page);

    long searchUnionCount(@Param("searchModel") UserUnionTransMonthStatSearchModel searchModel);
}
